package it.koutifaris.travianmap.dal;

import java.util.Date;
import java.util.List;

public interface RevisionService extends Closeable {

	boolean revisionExist(Revision revision);

	Revision newRevisionForDay(Date day);

	Revision getLatestRevision();

	Revision findRevisionForDay(Date day);

	List<Revision> listAllRevisions();

	List<Revision> listRevisions(Date from, Date to);

	interface Revision {

		long getId();

		Date getDay();
	}
}
